{if $oCoupons|count > 0}
    <div class="coupon_list" style="margin-top:40px">
    	<div class="coupon_title_box">
    		<div class="coupon_title navTitleFont">
    			Most Recent Coupon Codes
    		</div>
     	</div>
    
    {foreach item=oCoupon from=$oCoupons name=plist}
		{if $oCoupon->getTrackingURL() != ''}
			{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
		{else}
			{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
		{/if}
	
		<DIV class="plist">
			<DIV class="titleBox">
				<h3 class="title">
					<A title="{$oCoupon->getName()}" href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}" rel="nofollow" target="_blank">
						<!-- google_ad_section_start -->
						{$oCoupon->getName()|truncate:240:"..."}
						{if $oCoupon->getImpressionpixel() != ''}
							<IMG src="{$oCoupon->getImpressionpixel()}">
						{/if}
						<!-- google_ad_section_end -->
					</A>
					<!-- <span><a href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}">{$oCoupon->getMerchant()->getSimpleDomain()}</a></span> -->
				</h3>
			</DIV>
			<!-- google_ad_section_start(weight=ignore) -->
			<DIV class="contentBox">
				{if $oCoupon->getCreativeType() == 1}
					<DIV class="img">
						<a title="{$oCoupon->getName()}" id="thumb_{$oCoupon->getId()}" href="{$oCoupon->getCouponImage()->getImpressionTrackingUrl()}" class="highslide" onclick="return hs.expand(this)" rel="nofollow" target="_blank">
							<IMG border="0" alt="{$oCoupon->getName()}" src="{$HOME_URL}/images/url/80/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}" />
						</a>					
						<div class="highslide-caption">
						</div>
					</DIV>
					
				{/if}
			
				<DIV class="summary">					
					{if $oCoupon->getDescript() != ''}
						{if $oCoupon->getCreativeType() == 1}
							<DIV class="descript" style="width:520px">
						{else}
							<DIV class="descript">
						{/if}
								<p>{$oCoupon->getDescript()}</p>							
							</DIV>
					{/if}
					
					{if $oCoupon->getCode() != ''}
						<DIV class="couponCode">
							<DIV class="attributePrefix font11">●</DIV><div class="attributeTitle font12 fontWeight">Coupon Code: </div><span class="code">{$oCoupon->getCode()}</span>
						</DIV>
					{/if}
					
					{if $oCoupon->getEndDate() != '' AND $oCoupon->getEndDate() != '0000-00-00'}
						<DIV class="expireDate">
							<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Offer Expires:</DIV><div class="font12"> {$oCoupon->getEndDate()|date_format}</div>
						</DIV>
					{else}
						<DIV class="expireDate">
							<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Offer Expires:</DIV><div class="font12"> limited time</div>
						</DIV>
					{/if}

					{foreach item=oAttribute from=$oCoupon->getAttributes()}
						{if $oAttribute->getAttributeName() != 'Unspecified'}
							<DIV class="promo">
								<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Promotion Type:</DIV><div class="font12"> {$oAttribute->getAttributeName()}</div>
							</DIV>
						{/if}
					{/foreach}
					
					{if $isCategory == ''}
						{if $oCoupon->getCategory()->getName() != ''}
							<DIV class="category">
								<DIV class="attributePrefix font11">●</DIV><DIV class="attributeTitle font12">Category:</DIV> <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-coupon-codes', {$oCoupon->getCategory()->getId()}, 1);">{$oCoupon->getCategory()->getName()}</a>
							</DIV>
						{/if}	
					{/if}
				</DIV>
			</DIV>			
		</DIV>
		<!-- google_ad_section_end(weight=ignore) -->
		{/foreach}
	    
	</div>
	
	<div class="empty"></div>
	<div class="clear"></div>
	
    <DIV class="pagination">
		{if $pageCount == 0}
			<span class="notData">Data not found...</span>
		{else}
			{if $page > 1}
				<a href="javascript:void(0);" title="go to page {$prePage}" onclick="requestPage('', '{$id}', {$prePage}, '');"><< previous </a>
				
			{else}
				<span class="disabled"><< previous </span>
			{/if}
			
			{foreach item=data from=$pageList}
				{if $page == $data}
					<span class="current">{$data}</span>
				{else}
					<a href="javascript:void(0);" title="go to page {$data}" onclick="requestPage('', '{$id}', {$data}, '');">{$data}</a>
				
				{/if}
			{/foreach}
			
			{if $page < $pageCount}
				<a href="javascript:void(0);" title="go to page {$nextPage}" onclick="requestPage('', '{$id}', {$nextPage}, '');">next >></a>
			{else}
				<span class="disabled">>></span>
			{/if}
		{/if}
	</DIV>
		
	<div class="empty"></div>
	<div class="clear"></div>
{/if}
 